# Remove Folder Doc Id

Clears the _dlc_DocId field from folder properties in SharePoint document libraries and removes the corresponding entries from the FolderIDs list.

Filename pattern: filename must contain RemoveFolderDocId (case-insensitive).
Example: 20240115 RemoveFolderDocId cleanup.xlsx

# Columns

Name Required Description
Url Yes Absolute URL of the target site, document library, or folder. The scope of the operation depends on the URL type.

Url is always required.

# Behavior

The scope of the operation is determined by the URL type:

URL type Scope
Site URL All document libraries in the site
Document library URL All folders in that library
Folder URL That folder and all descendants

The handler:

  1. Resolves the URL to determine scope (site, library, or folder).
  2. Queries all folders within scope using a recursive CAML query.
  3. Clears _dlc_DocId on each folder that has a non-empty value (processed in batches of 500).
  4. Deletes the matching entries from the FolderIDs list. If the list does not exist or a server error occurs, the deletion is skipped with a warning and the clear operation is still reported as successful.

The Document ID Service (opens new window) site collection feature must have been active at some point so that the _dlc_DocId column exists on the lists. The handler reads and clears this field — it does not require the feature to be currently active.

Last Updated: 4/20/2026, 12:54:05 PM